using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace DataAccess
{
    /// <summary>
    /// A custom serializable dataset containing ADM_FLUJOS information.
    /// </summary>
    [Serializable]
    [DesignerCategory("code")]
    public class SigPlanAccionModificacionData : DataTable
    {
        ///
        /// Constants for table and fields mapping
        ///
        public const String SIG_PLAN_ACCION_MODIFICACION_TABLE = "SIG_PLAN_ACCION_MODIFICACION";
        public const String PLM_ID_FIELD = "PLM_ID";
        public const String PND_ID_FIELD = "PND_ID";
        public const String STM_ID_FIELD = "STM_ID";
        public const String PLM_VALOR_FIELD = "PLM_VALOR";
        public const String PLM_JUSTIFICACION_FIELD = "PLM_JUSTIFICACION";
        public const String PLM_NORMA_FIELD = "PLM_NORMA";
        public const String PLM_FECHA_FIELD = "PLM_FECHA";
        public const String PLM_OBSERVACION_FIELD = "PLM_OBSERVACION";
        public const String PLM_USUARIO_FIELD = "PLM_USUARIO";
        public const String PLN_ID_FIELD = "PLN_ID";
        
        
        
        

        public SigPlanAccionModificacionData()
		{
			BuildDataTables();
		}


        protected SigPlanAccionModificacionData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		/// <summary>
		/// 
		/// </summary>
		private void BuildDataTables()
		{
            Columns.Add(PLM_ID_FIELD, typeof(Decimal));
            Columns.Add(PLN_ID_FIELD, typeof(Decimal));
            Columns.Add(STM_ID_FIELD, typeof(Decimal));
            Columns.Add(PLM_VALOR_FIELD, typeof(Decimal));
            Columns.Add(PLM_JUSTIFICACION_FIELD, typeof(String));
            Columns.Add(PLM_NORMA_FIELD, typeof(String));
            Columns.Add(PLM_FECHA_FIELD, typeof(DateTime));
            Columns.Add(PLM_OBSERVACION_FIELD, typeof(String));
            Columns.Add(PLM_USUARIO_FIELD, typeof(String));
            
            TableName = SIG_PLAN_ACCION_MODIFICACION_TABLE;
		}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Add(DataRow row)
        {
            Rows.Add(row);
        }

    }
}
